{include file='header'}
<link rel="stylesheet" href="__PUBLIC__css/user.css">
{include file='nav'}
{include file='profile/userinfo'}
<div class="user-main">
	{include file='profile/nav'}
	<div class="user-content">
		<div class="me-course">
			<h2>我的课程</h2>
			<div class="course-box">
				{empty name="$data"}
				{include file='profile/none'}
				{else /}
				<!-- 只报名了一名课程 -->
				{foreach $data as $nav}
				<div class="item" {if count($data) elt 1}style="width:100%"{/if}>
					<div class="title">
						<h3>{$nav.nav_name}</h3>
						<a href="/course/{$nav.nav_id}">查看更多</a>
					</div>
					<ul>
						{if $nav.type}{foreach $nav.type as $type}
						<li>
							<a href="#">
								<div class="icon" style="background: {$nav.nav_back};"><i class="iconfont icon-{$nav.nav_icon}"></i></div>
								<div class="t"><span>{$type.type_name}</span><p>{$type.userPoints}/{$type.points} 掌握点</p></div>
							</a>
							{if $nav.lastLog eq $type.type_id}<a href="/course/{$nav.nav_id}/{$type.type_id}" class="btn">继续</a>{/if}
						</li>
						{/foreach}{/if}
					</ul>
				</div>
				{/foreach}
				{/empty}
			</div>
		</div>
	</div>
</div>
{include file='footer'}
